package io.github.rascaler.dcenter.message;

import java.io.Serializable;

/**
 * 注意：各个模块都需要在这个类中注册异常编码
 *
 *
 *
 * 公共状态码基类,规范公共状态码,不同系统要继承该类
 * 异常码格式：AABBBCCCC
 * AA 系统编码  BBB 系统模块编码  CCCC 异常编码
 * support  10 100 1000~9999
 * portlet  10 101 1000~9999
 * stage    10 102 1000~9999
 * report   10 103 1000~9999
 * nip      10 104 1000~9999
 *
 * Created by wurenqing on 3/17/17.
 */
public class BasicEcode implements Serializable {


    /* 系统异常 */
    public final static String FAILED = "1001";
    /* 成功 */
    public final static String SUCCESS = "1000";

    /** Feign调用异常 */
    public static final String FEIGN_CALL_EXCEPTON = "1002";

    /* 用户未登陆 */
    public final static String USER_ERR_UNLOGINED = "10002";

    /* 账号登录异常 */
    public final static String USER_ERR_LOGIN = "10003";

    /* 账号已被禁用 */
    public final static String USER_ACCOUNT_LOCK = "10004";

    /* 该账号已在其他地方登录 */
    public final static String USER_ACCOUNT_KICK_OUT = "10005";

    /* 没有权限 */
    public final static String PERMISSION_DENIED = "11001";

    /* 参数不合法 */
    public final static String ILLEGAL_PARAMETER = "13000";

    /* 参数不能为空 */
    public final static String NULL_PARAMETER = "13001";

    /* 参数%s不合法 */
    public final static String DETAIL_ILLEGAL_PARAMETER = "13002";

    /* 数据异常,请及时修复 */
    public final static String DATA_ERROR = "13003";

    /* 数据不存在 */
    public final static String DATA_NOT_FOUND = "13004";

    /* 日期格式化失败 */
    public final static String DATE_FORMAT_ERROR = "13005";



    //操作类提示
    /**
     * 保存失败
     */
    public final static String OP_ERR_SAVE = "19001";
    /**
     * 更新失败
     */
    public final static String OP_ERR_UPDATE = "19002";
    /**
     * 删除失败
     */
    public final static String OP_ERR_DELETE = "19003";

    /**
     * 重复操作
     */
    public final static String OP_RE_OPERATE = "19004";

    /**
     * 查询失败
     */
    public final static String OP_ERR_SELECT = "19005";





}
